package com.triones.api.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.triones.api.entity.NoticeMemberDO;
import com.triones.api.entity.vo.ApiCustomNoticeVO;
import com.triones.api.entity.vo.CustomNoticeMemberVO;
import com.triones.api.entity.vo.NoticeMemberVO;
import org.apache.ibatis.annotations.Param;

/**
 * 通知和用户关联mapper
 */
public interface NoticeMemberMapper extends BaseMapperPlus<NoticeMemberMapper, NoticeMemberDO, NoticeMemberVO> {

    /**
     * 通知用户列表
     * @param build
     * @param wrapper
     * @return
     */
    Page<CustomNoticeMemberVO> selectPageList(@Param("page") Page<Object> build,@Param(Constants.WRAPPER) QueryWrapper<Object> wrapper);

    /**
     * api端通知列表（分页）
     * @param build
     * @param uid
     * @return
     */
    Page<ApiCustomNoticeVO> apiSelectPageList(@Param("page") Page<Object> build,@Param("uid") Long uid);

    /**
     * api端通知详情
     * @param id
     * @return
     */
    ApiCustomNoticeVO apiGetNoticeInfoById(@Param("id") Long id,@Param("uid") Long uid);
}
